/*     */ package com.wgcloud.controller;
/*     */

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.github.pagehelper.PageInfo;
import com.wgcloud.dto.NetIoStateDto;
import com.wgcloud.entity.*;
import com.wgcloud.service.*;
import com.wgcloud.util.*;
import com.wgcloud.util.license.LicenseUtil;
import com.wgcloud.util.staticvar.StaticKeys;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/*     */ 
/*     */ @Controller
/*     */ @RequestMapping({"/systemInfo"})
/*     */ public class SystemInfoController {
/*  45 */   private static final Logger logger = LoggerFactory.getLogger(com.wgcloud.controller.SystemInfoController.class);
/*     */   
/*     */   @Resource
/*     */   private SystemInfoService systemInfoService;
/*     */   
/*     */   @Resource
/*     */   private LogInfoService logInfoService;
/*     */   
/*     */   @Resource
/*     */ DashboardService dashboardService;
/*     */   @Resource
/*     */   CpuStateService cpuStateService;
/*     */   @Resource
/*     */   DeskStateService deskStateService;
/*     */   @Resource
/*     */   DeskIoService deskIoService;
/*     */   @Resource
/*     */   DiskSmartService diskSmartService;
/*     */   @Resource
/*     */   CpuTemperaturesService cpuTemperaturesService;
/*     */   @Resource
/*     */   MemStateService memStateService;
/*     */   @Resource
/*     */   NetIoStateService netIoStateService;
/*     */   @Resource
/*     */   SysLoadStateService sysLoadStateService;
/*     */   @Resource
/*     */   AppInfoService appInfoService;
/*     */   @Resource
/*     */   DockerInfoService dockerInfoService;
/*     */   @Resource
/*     */   PortInfoService portInfoService;
/*     */   @Resource
/*     */   FileWarnInfoService fileWarnInfoService;
/*     */   @Resource
/*     */   ExcelExportService excelExportService;
/*     */   @Autowired
/*     */   private TokenUtils tokenUtils;
/*     */   
/*     */   private void testThread() {
/*  85 */     Runnable runnable = () -> logger.info("SystemInfoController----------testThread");
/*     */ 
/*     */     
/*  88 */     ThreadPoolUtil.executor.execute(runnable);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @ResponseBody
/*     */   @RequestMapping({"agentList"})
/*     */   public String agentList(@RequestBody String paramBean) {
/* 101 */     JSONObject agentJsonObject = (JSONObject)JSONUtil.parse(paramBean);
/* 102 */     if (!StaticKeys.LICENSE_STATE.equals("1")) {
/* 103 */       return ResDataUtils.resetErrorJson("请先升级到专业版");
/*     */     }
/* 105 */     if (!this.tokenUtils.checkAgentToken(agentJsonObject)) {
/* 106 */       logger.error("token is invalidate");
/* 107 */       return ResDataUtils.resetErrorJson("token is invalidate");
/*     */     } 
/*     */     
/*     */     try {
/* 111 */       Map<String, Object> params = new HashMap<>();
/* 112 */       if (!StringUtils.isEmpty(agentJsonObject.getStr("hostname"))) {
/* 113 */         params.put("hostname", agentJsonObject.getStr("hostname").trim());
/*     */       }
/* 115 */       if (!StringUtils.isEmpty(agentJsonObject.getStr("orderBy"))) {
/* 116 */         params.put("orderBy", agentJsonObject.getStr("orderBy"));
/* 117 */         params.put("orderType", agentJsonObject.getStr("orderType"));
/*     */       } 
/* 119 */       PageInfo pageInfo = this.systemInfoService.selectByParams(params, agentJsonObject.getInt("page").intValue(), agentJsonObject.getInt("pageSize").intValue());
/* 120 */       return ResDataUtils.resetSuccessJson(pageInfo);
/* 121 */     } catch (Exception e) {
/* 122 */       logger.error("agent获取主机列表信息错误", e);
/* 123 */       this.logInfoService.save("agent获取主机列表信息错误", e.toString(), "1");
/* 124 */       return ResDataUtils.resetErrorJson(e.toString());
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @ResponseBody
/*     */   @RequestMapping({"save"})
/*     */   public String saveSystemInfo(SystemInfo systemInfo, Model model, HttpServletRequest request) {
/*     */     try {
/* 140 */       if (StringUtils.isEmpty(systemInfo.getId())) {
/* 141 */         this.systemInfoService.save(systemInfo);
/*     */       } else {
/* 143 */         SystemInfo ho = this.systemInfoService.selectById(systemInfo.getId());
/* 144 */         ho.setRemark(systemInfo.getRemark());
/* 145 */         this.systemInfoService.updateById(ho);
/*     */       }
/*     */     
/* 148 */     } catch (Exception e) {
/* 149 */       logger.error("保存主机信息错误", e);
/* 150 */       this.logInfoService.save("保存主机信息错误", e.toString(), "1");
/*     */     } 
/* 152 */     return "redirect:/systemInfo/systemInfoList";
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @ResponseBody
/*     */   @RequestMapping({"saveWinConsole"})
/*     */   public String saveWinConsole(SystemInfo systemInfo, Model model, HttpServletRequest request) {
/*     */     try {
/* 167 */       if (StringUtils.isEmpty(systemInfo.getId())) {
/* 168 */         this.systemInfoService.save(systemInfo);
/*     */       } else {
/* 170 */         SystemInfo ho = this.systemInfoService.selectById(systemInfo.getId());
/* 171 */         ho.setWinConsole(systemInfo.getWinConsole());
/* 172 */         this.systemInfoService.updateById(ho);
/*     */       }
/*     */     
/* 175 */     } catch (Exception e) {
/* 176 */       logger.error("保存主机windows远程url信息错误", e);
/* 177 */       this.logInfoService.save("保存主机windows远程url信息错误", e.toString(), "1");
/*     */     } 
/* 179 */     return systemInfo.getWinConsole();
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @RequestMapping({"systemInfoList"})
/*     */   public String systemInfoList(SystemInfo systemInfo, Model model, HttpServletRequest request) {
/* 191 */     Map<String, Object> params = new HashMap<>();
/*     */     try {
/* 193 */       StringBuffer url = new StringBuffer();
/* 194 */       String hostname = null;
/* 195 */       if (!StringUtils.isEmpty(systemInfo.getHostname())) {
/* 196 */         hostname = systemInfo.getHostname();
/* 197 */         params.put("hostname", hostname.trim());
/* 198 */         url.append("&hostname=").append(hostname);
/*     */       } 
/* 200 */       if (!StringUtils.isEmpty(systemInfo.getState())) {
/* 201 */         params.put("state", systemInfo.getState());
/* 202 */         url.append("&state=").append(systemInfo.getState());
/*     */       } 
/* 204 */       if (!StringUtils.isEmpty(systemInfo.getOrderBy())) {
/* 205 */         params.put("orderBy", systemInfo.getOrderBy());
/* 206 */         params.put("orderType", systemInfo.getOrderType());
/* 207 */         url.append("&orderBy=").append(systemInfo.getOrderBy());
/* 208 */         url.append("&orderType=").append(systemInfo.getOrderType());
/*     */       } 
/* 210 */       if (request.getParameter("dashView") != null) {
/* 211 */         url.append("&dashView=1");
/*     */       }
/*     */       
/* 214 */       LicenseUtil.checkHostList(systemInfo, model);
/*     */       
/* 216 */       PageInfo<SystemInfo> pageInfo = this.systemInfoService.selectByParams(params, systemInfo.getPage().intValue(), systemInfo.getPageSize().intValue());
/*     */       
/* 218 */       hostAddVal(pageInfo);
/*     */       
/* 220 */       PageUtil.initPageNumber(pageInfo, model);
/* 221 */       model.addAttribute("pageUrl", "/systemInfo/systemInfoList?1=1" + url.toString());
/* 222 */       model.addAttribute("page", pageInfo);
/* 223 */       model.addAttribute("systemInfo", systemInfo);
/*     */     }
/* 225 */     catch (Exception e) {
/* 226 */       logger.error("查询主机列表错误", e);
/* 227 */       this.logInfoService.save("查询主机列表错误", e.toString(), "1");
/*     */     } 
/* 229 */     if (request.getParameter("dashView") != null) {
/* 230 */       return "dashView/list";
/*     */     }
/* 232 */     return "host/list";
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   private void hostAddVal(PageInfo<SystemInfo> pageInfo) throws Exception {
/* 243 */     Map<String, Object> paramsAppInfo = new HashMap<>();
/* 244 */     for (SystemInfo systemInfo1 : pageInfo.getList()) {
/* 245 */       paramsAppInfo.put("hostname", systemInfo1.getHostname());
/* 246 */       systemInfo1.setRxbyt(FormatUtil.kbToM(systemInfo1.getRxbyt()) + "/s");
/* 247 */       systemInfo1.setTxbyt(FormatUtil.kbToM(systemInfo1.getTxbyt()) + "/s");
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */       
/* 256 */       HostUtil.setSysImage(systemInfo1);
/*     */ 
/*     */       
/* 259 */       List<DeskState> deskStates = this.deskStateService.selectAllByParams(paramsAppInfo);
/* 260 */       Double sumSize = Double.valueOf(0.0D);
/* 261 */       Double useSize = Double.valueOf(0.0D);
/* 262 */       for (DeskState deskState : deskStates) {
/* 263 */         if (!StringUtils.isEmpty(deskState.getSize()) && !StringUtils.isEmpty(deskState.getUsed())) {
/* 264 */           sumSize = Double.valueOf(sumSize.doubleValue() + Double.valueOf(deskState.getSize().replace("G", "")).doubleValue());
/* 265 */           useSize = Double.valueOf(useSize.doubleValue() + Double.valueOf(deskState.getUsed().replace("G", "")).doubleValue());
/*     */         } 
/*     */       } 
/* 268 */       systemInfo1.setDiskPer(Double.valueOf(0.0D));
/* 269 */       if (sumSize.doubleValue() != 0.0D) {
/* 270 */         systemInfo1.setDiskPer(Double.valueOf(FormatUtil.formatDouble(Double.valueOf(useSize.doubleValue() / sumSize.doubleValue() * 100.0D), 2)));
/*     */       }
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @RequestMapping({"detail"})
/*     */   public String hostDetail(Model model, HttpServletRequest request) {
/* 289 */     String id = request.getParameter("id");
/* 290 */     if (StringUtils.isEmpty(id)) {
/* 291 */       return "error/500";
/*     */     }
/* 293 */     String hostname = "";
/*     */     try {
/* 295 */       SystemInfo systemInfo = this.systemInfoService.selectById(id);
/* 296 */       hostname = systemInfo.getHostname();
/* 297 */       model.addAttribute("systemInfo", systemInfo);
/* 298 */       Map<String, Object> params = new HashMap<>();
/* 299 */       params.put("hostname", systemInfo.getHostname());
/* 300 */       List<DeskState> deskStateList = this.deskStateService.selectAllByParams(params);
/* 301 */       model.addAttribute("deskStateList", deskStateList);
/* 302 */       List<DeskIo> deskIoList = this.deskIoService.selectAllByParams(params);
/* 303 */       model.addAttribute("deskIoList", deskIoList);
/* 304 */       List<DiskSmart> diskSmartList = this.diskSmartService.selectAllByParams(params);
/* 305 */       model.addAttribute("diskSmartList", diskSmartList);
/* 306 */       List<CpuTemperatures> cpuTemperaturesList = this.cpuTemperaturesService.selectAllByParams(params);
/* 307 */       model.addAttribute("cpuTemperaturesList", cpuTemperaturesList);
/* 308 */     } catch (Exception e) {
/* 309 */       logger.error("主机详细信息错误", e);
/* 310 */       this.logInfoService.save("主机详细信息错误", e.toString(), "1");
/*     */     } 
/* 312 */     if (request.getParameter("dashView") != null) {
/* 313 */       return "dashView/view";
/*     */     }
/* 315 */     return "host/view";
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @RequestMapping({"del"})
/*     */   public String delete(Model model, HttpServletRequest request, RedirectAttributes redirectAttributes) {
/* 331 */     String errorMsg = "删除主机信息错误";
/*     */     try {
/* 333 */       if (!StringUtils.isEmpty(request.getParameter("id"))) {
/* 334 */         String[] ids = request.getParameter("id").split(",");
/* 335 */         for (String id : ids) {
/* 336 */           SystemInfo sys = this.systemInfoService.selectById(id);
/* 337 */           this.logInfoService.save("删除主机：" + sys.getHostname(), sys.getHostname(), "0");
/*     */         } 
/* 339 */         this.systemInfoService.deleteById(ids);
/*     */       } 
/* 341 */     } catch (Exception e) {
/* 342 */       logger.error(errorMsg, e);
/* 343 */       this.logInfoService.save(errorMsg, e.toString(), "1");
/*     */     } 
/* 345 */     return "redirect:/systemInfo/systemInfoList";
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @RequestMapping({"chart"})
/*     */   public String hostChart(Model model, HttpServletRequest request) {
/* 358 */     String id = request.getParameter("id");
/* 359 */     String date = request.getParameter("date");
/* 360 */     String am = request.getParameter("am");
/* 361 */     if (StringUtils.isEmpty(id)) {
/* 362 */       return "error/500";
/*     */     }
/*     */     try {
/* 365 */       SystemInfo systemInfo = this.systemInfoService.selectById(id);
/* 366 */       model.addAttribute("systemInfo", systemInfo);
/* 367 */       Map<String, Object> params = new HashMap<>();
/* 368 */       params.put("hostname", systemInfo.getHostname());
/* 369 */       if (StringUtils.isEmpty(date)) {
/* 370 */         date = DateUtil.getCurrentDate();
/* 371 */         am = this.dashboardService.getDefaultAm();
/*     */       } 
/* 373 */       this.dashboardService.setDateParam(am, date, params);
/* 374 */       model.addAttribute("datenow", date);
/* 375 */       model.addAttribute("am", am);
/* 376 */       model.addAttribute("dateList", this.dashboardService.getDateList());
/* 377 */       model.addAttribute("amList", this.dashboardService.getAmList());
/* 378 */       List<CpuState> cpuStateList = this.cpuStateService.selectAllByParams(params);
/* 379 */       model.addAttribute("cpuStateList", JSONUtil.parseArray(cpuStateList));
/* 380 */       List<MemState> memStateList = this.memStateService.selectAllByParams(params);
/* 381 */       model.addAttribute("memStateList", JSONUtil.parseArray(memStateList));
/* 382 */       List<SysLoadState> ysLoadSstateList = this.sysLoadStateService.selectAllByParams(params);
/* 383 */       model.addAttribute("ysLoadSstateList", JSONUtil.parseArray(ysLoadSstateList));
/* 384 */       model.addAttribute("ysLoadSstateMaxVal", Double.valueOf(findLoadMaxVal(ysLoadSstateList)));
/* 385 */       List<NetIoState> netIoStateList = this.netIoStateService.selectAllByParams(params);
/* 386 */       List<NetIoStateDto> netIoStateDtoList = toNetIoStateDto(netIoStateList);
/* 387 */       model.addAttribute("netIoStateList", JSONUtil.parseArray(netIoStateDtoList));
/* 388 */       findNetIoStateBytMaxVal(netIoStateDtoList, model);
/*     */     }
/* 390 */     catch (Exception e) {
/* 391 */       logger.error("主机图形报表错误", e);
/* 392 */       this.logInfoService.save("主机图形报表错误", e.toString(), "1");
/*     */     } 
/* 394 */     if (request.getParameter("dashView") != null) {
/* 395 */       return "dashView/viewChart";
/*     */     }
/* 397 */     return "host/viewChart";
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @RequestMapping({"chartExcel"})
/*     */   public void hostChartExcel(Model model, HttpServletRequest request, HttpServletResponse response) {
/* 410 */     String id = request.getParameter("id");
/* 411 */     String date = request.getParameter("date");
/* 412 */     String am = request.getParameter("am");
/* 413 */     if (StringUtils.isEmpty(id)) {
/*     */       return;
/*     */     }
/*     */     try {
/* 417 */       if (!StaticKeys.LICENSE_STATE.equals("1")) {
/* 418 */         response.setContentType("text/html;charset=UTF-8");
/* 419 */         response.getOutputStream().write("The excel needs to wgcloud-pro version".getBytes());
/*     */         return;
/*     */       } 
/* 422 */       SystemInfo systemInfo = this.systemInfoService.selectById(id);
/* 423 */       model.addAttribute("systemInfo", systemInfo);
/* 424 */       Map<String, Object> params = new HashMap<>();
/* 425 */       params.put("hostname", systemInfo.getHostname());
/* 426 */       if (StringUtils.isEmpty(date)) {
/* 427 */         date = DateUtil.getCurrentDate();
/* 428 */         am = this.dashboardService.getDefaultAm();
/*     */       } 
/* 430 */       this.dashboardService.setDateParam(am, date, params);
/* 431 */       this.excelExportService.exportExcel(params, response);
/* 432 */     } catch (Exception e) {
/* 433 */       logger.error("主机图形报表导出excel错误", e);
/* 434 */       this.logInfoService.save("主机图形报表导出excel错误", e.toString(), "1");
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   private double findLoadMaxVal(List<SysLoadState> ysLoadSstateList) {
/* 446 */     double maxval = 0.0D;
/* 447 */     if (!CollectionUtil.isEmpty(ysLoadSstateList)) {
/* 448 */       for (SysLoadState sysLoadState : ysLoadSstateList) {
/* 449 */         if (null != sysLoadState.getOneLoad() && sysLoadState.getOneLoad().doubleValue() > maxval) {
/* 450 */           maxval = sysLoadState.getOneLoad().doubleValue();
/*     */         }
/* 452 */         if (null != sysLoadState.getFiveLoad() && sysLoadState.getFiveLoad().doubleValue() > maxval) {
/* 453 */           maxval = sysLoadState.getFiveLoad().doubleValue();
/*     */         }
/* 455 */         if (null != sysLoadState.getFifteenLoad() && sysLoadState.getFifteenLoad().doubleValue() > maxval) {
/* 456 */           maxval = sysLoadState.getFifteenLoad().doubleValue();
/*     */         }
/*     */       } 
/*     */     }
/* 460 */     if (maxval == 0.0D) {
/* 461 */       maxval = 1.0D;
/*     */     }
/* 463 */     return Math.ceil(maxval);
/*     */   }
/*     */   
/*     */   private List<NetIoStateDto> toNetIoStateDto(List<NetIoState> netIoStateList) {
/* 467 */     List<NetIoStateDto> dtoList = new ArrayList<>();
/* 468 */     for (NetIoState netIoState : netIoStateList) {
/* 469 */       NetIoStateDto dto = new NetIoStateDto();
/* 470 */       dto.setCreateTime(netIoState.getCreateTime());
/* 471 */       dto.setDateStr(netIoState.getDateStr());
/* 472 */       dto.setHostname(netIoState.getHostname());
/* 473 */       dto.setRxbyt(Double.valueOf(netIoState.getRxbyt()));
/* 474 */       dto.setRxpck(Double.valueOf(netIoState.getRxpck()));
/* 475 */       dto.setTxbyt(Double.valueOf(netIoState.getTxbyt()));
/* 476 */       dto.setTxpck(Double.valueOf(netIoState.getTxpck()));
/* 477 */       dto.setDropin(Double.valueOf(netIoState.getDropin()));
/* 478 */       dto.setDropout(Double.valueOf(netIoState.getDropout()));
/* 479 */       dtoList.add(dto);
/*     */     } 
/* 481 */     return dtoList;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   private void findNetIoStateBytMaxVal(List<NetIoStateDto> netIoStateList, Model model) {
/* 491 */     double maxBytesVal = 0.0D;
/* 492 */     double maxPckVal = 0.0D;
/* 493 */     double maxDropVal = 0.0D;
/* 494 */     if (!CollectionUtil.isEmpty(netIoStateList)) {
/* 495 */       for (NetIoStateDto netIoState : netIoStateList) {
/* 496 */         if (null != netIoState.getRxbyt() && netIoState.getRxbyt().doubleValue() > maxBytesVal) {
/* 497 */           maxBytesVal = netIoState.getRxbyt().doubleValue();
/*     */         }
/* 499 */         if (null != netIoState.getTxbyt() && netIoState.getTxbyt().doubleValue() > maxBytesVal) {
/* 500 */           maxBytesVal = netIoState.getTxbyt().doubleValue();
/*     */         }
/* 502 */         if (null != netIoState.getRxpck() && netIoState.getRxpck().doubleValue() > maxPckVal) {
/* 503 */           maxPckVal = netIoState.getRxpck().doubleValue();
/*     */         }
/* 505 */         if (null != netIoState.getTxpck() && netIoState.getTxpck().doubleValue() > maxPckVal) {
/* 506 */           maxPckVal = netIoState.getTxpck().doubleValue();
/*     */         }
/* 508 */         if (null != netIoState.getDropin() && netIoState.getDropin().doubleValue() > maxDropVal) {
/* 509 */           maxDropVal = netIoState.getDropin().doubleValue();
/*     */         }
/* 511 */         if (null != netIoState.getDropout() && netIoState.getDropout().doubleValue() > maxDropVal) {
/* 512 */           maxDropVal = netIoState.getDropout().doubleValue();
/*     */         }
/*     */       } 
/*     */     }
/* 516 */     if (maxBytesVal == 0.0D) {
/* 517 */       maxBytesVal = 1.0D;
/*     */     }
/* 519 */     model.addAttribute("netIoStateBytMaxVal", Double.valueOf(Math.ceil(maxBytesVal)));
/* 520 */     if (maxPckVal == 0.0D) {
/* 521 */       maxPckVal = 1.0D;
/*     */     }
/* 523 */     model.addAttribute("netIoStatePckMaxVal", Double.valueOf(Math.ceil(maxPckVal)));
/* 524 */     if (maxDropVal == 0.0D) {
/* 525 */       maxDropVal = 1.0D;
/*     */     }
/* 527 */     model.addAttribute("netIoStateDropPckMaxVal", Double.valueOf(Math.ceil(maxDropVal)));
/*     */   }
/*     */ }


/* Location:              /Users/zhangyongxin/soft-install/wgcloud/wgcloud-v3.3.5/server/bank/wgcloud-server-release.jar!/BOOT-INF/classes/com/wgcloud/controller/SystemInfoController.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */